package com.Example.Service;

import com.Example.Dao.StudentDao;
import com.Example.pojo.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Cheng-02
 * @version V1.0
 * @Package com.Example.Service
 * @date 2024/4/22 下午1:43
 */
@Service
public class StudentServiceImpl implements  StudentService{
    @Autowired
   private StudentDao studentDao = null;
    @Override
    public List<Student> findAll() {

        List<Student> students = studentDao.queryAll();
        return students;
    }
}
